<div id='<?php echo $control->getAjaxContainerId(); ?>'>
    <?php
    $views = $control->getViews();

    foreach ($views as $view) {
        if (is_array($view)) {
            $viewName = isset($view['view']) ? $view['view'] : (isset($view[0]) ? $view[0] : NULL);
            $viewData = isset($view['data']) ? $view['data'] : (isset($view[1]) ? $view[1] : array('control' => $control));
        }
        if (is_string($view)) {
            $viewName = $view;
            $viewData = $control;
        }
        if ($viewName != NULL)
            $control->renderView($viewName, $viewData, $control);
    }

    $controlChildren = $control->getChildrenOfControl();

    foreach ($controlChildren as $name => $control) {
        $control->render();
    }
    ?>
</div>

